package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.Grade;
import com.think.teaching.model.Major;

import java.util.List;

/**
 * <p>
 * 专业 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public interface MajorService extends IService<Major> {
	Major AddNewMajor(Major major);

	Major UpdateMajor(Major major);

	Major SetMajorState(Integer id, Integer state);



	List<Major> SearchMajorWithKey(String key, Boolean withoutBan);

	Major GetMajorInfo(Integer id);

	List<Grade> GetMajorGradeList(Integer id);
}
